package sz.szsmk.citizencard.ioc.module;


import android.content.Context;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import sz.szsmk.citizencard.db.DaoSession;

/**
 * Created by wangzhongfu on 2017/6/5.
 */

@Module
public class AppModule  {

    private Context context;

    private DaoSession mDaoSession;

    public AppModule(DaoSession daoSession) {
        mDaoSession = daoSession;

    }

    @Singleton
    @Provides
    public Context ProviderApplicationContext(){
        return context;
    }

    @Singleton
    @Provides
    DaoSession provideDaoSession() {
        return mDaoSession;
    }


}
